package com.xxgc.eow.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 职位要求表
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-23
 */
@Getter
@Setter
@Schema(name = "Postask", description = "职位要求表")
public class Postask implements Serializable {

    private static final long serialVersionUID = 1L;
    @NotNull
    @Schema(description = "岗位id")
    private Integer postId;

    @NotNull
    @Schema(description = "要求类型id")
    private Integer askTypeId;

    @Schema(description = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "销毁时间")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime destroyTime;

    @Schema(description = "假删除状态")
    private Integer tip;

    private List<Asktype> asktypes;

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Integer getAskTypeId() {
        return askTypeId;
    }

    public void setAskTypeId(Integer askTypeId) {
        this.askTypeId = askTypeId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getDestroyTime() {
        return destroyTime;
    }

    public void setDestroyTime(LocalDateTime destroyTime) {
        this.destroyTime = destroyTime;
    }

    public Integer getTip() {
        return tip;
    }

    public void setTip(Integer tip) {
        this.tip = tip;
    }

    public List<Asktype> getAsktypes() {
        return asktypes;
    }

    public void setAsktypes(List<Asktype> asktypes) {
        this.asktypes = asktypes;
    }
}
